package com.example.gmranqi.common.codeGenerator;

public class SelfCodeGenerator {

    private static String PARENT_NAME = "com.surfilter.oormp";
    private static String SRC_MAIN_JAVA = "/src/main/java/";
    private static String MODULAR_NAME = "";
    private static String AUTHOR = "LJJ";
    private static boolean REST_CONTROLLER_STYLE = true;

    private static String JDBC_MYSQL_URL = "jdbc:mysql://taoshuwan.cn:3306/spring_boot_demo?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull";
    private static String JDBC_DRIVER_NAME = "com.mysql.cj.jdbc.Driver";
    private static String JDBC_USERNAME = "root";
    private static String JDBC_PASSWORD = "surfilter1218";

    private static String moduleName = "common.codeGenerator.code";

    public static void main (String[] args) {
        String tableName = "staff_info";
        String tablePrefix = "#";
        CodeGenerator codeGenerator = new CodeGenerator(PARENT_NAME, MODULAR_NAME, SRC_MAIN_JAVA, AUTHOR, REST_CONTROLLER_STYLE, JDBC_MYSQL_URL, JDBC_DRIVER_NAME, JDBC_USERNAME, JDBC_PASSWORD);
        codeGenerator.autoGenerator(moduleName, tableName, tablePrefix);
    }
}
